import { routes } from './routes' 
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom'


const Index = () => {
	return (
		<Router>
			<Routes>
				{
					routes.length > 0 && routes.map((v, i) => {
						return <Route key={ i } path={v.path} element={ <v.element></v.element> }></Route>
					})
				}
			</Routes>
		</Router>
	)

}


export default Index